#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include "List.h"

int main() {
    List* list = createList();

    insertAtHead(list, 1);
    insertAtTail(list, 2);
    insertAtTail(list, 3);

    printf("Initial list: ");
    displayList(list);

    insertAtPosition(list, 4, 2);
    printf("After inserting 4 at position 2: ");
    displayList(list);

    deleteAtHead(list);
    printf("After deleting head: ");
    displayList(list);

    deleteAtTail(list);
    printf("After deleting tail: ");
    displayList(list);

    deleteAtPosition(list, 1);
    printf("After deleting at position 1: ");
    displayList(list);

    freeList(list);
    return 0;
}
